﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Automted_Bank_teller;
using NUnit.Framework;
namespace Project_Tester
{
    [TestFixture]
    class Registeration_Tester
    {

        [Test]
        public void Set_data_for_ClientRegister_withNormalparameter()
        {
            Registeration_Logic register = new Registeration_Logic();
            bool actual = register.Set_data_for_ClientRegister("ahmed","reda","saied","01025844123","23st jule","gharbya","tanta","hamada.horse1993@gmail.com","1341645416341","20110024","14789",500);
            bool expected = true;
            Assert.AreEqual(expected, actual, "error in normal parameter");
        }


        [Test]
        public void Set_data_for_ClientRegister_withEmptyWhitespaceparameter()
        {
            Registeration_Logic register = new Registeration_Logic();
            bool actual = register.Set_data_for_ClientRegister(" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", 0);
            bool expected = false;
            Assert.AreEqual(expected, actual, "error in empty/whitespace parameter");
        }


        [Test]
        public void Set_data_for_ClientRegister_withOUTBoundaryparameter()
        {
            Registeration_Logic register = new Registeration_Logic();
            bool actual = register.Set_data_for_ClientRegister(null, null, null, null,null, null, null, null, null, null, null, -1);
            bool expected = false;
            Assert.AreEqual(expected, actual, "error in empty/whitespace parameter");
        }
    }
}
